/**
 * MarioItem_Mushroom
 * @extends MarioItem
 * @version 2010.11.30
 */

class MarioItem_Mushroom extends MarioItem;

/**
 * PostBeginPlay
 * @version 2010.12.04
 */
simulated function PostBeginPlay()
{
	Super.PostBeginPlay();

}
/**
 * DoItemEffect - the responsibility of implementing the item's effect on the player is
 * delegated to this method from MarioItem's Touch event. This item is Destroy()'d immediately
 * following the return from here.
 * @version 2010.12.04
 */
function DoItemEffect(Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal) 
{ 
	`log("Power UP!");
	MarioPawn(Other).GrowHeight();
	MarioPawn(Other).GiveHealth(50,150);
	`log("health: "$MarioPawn(Other).Health);
}

/*
/**
 * HitWall
 * @version 2010.12.04
 */
simulated event HitWall(vector normal, actor wall, PrimitiveComponent wallComp)
{
	//Debugging
	`log("Hit Wall! " $normal);

	Super.HitWall(normal, wall, wallComp);
}

/**
 * Bump 
 * @version 2010.12.04
 */
event Bump(Actor Other, PrimitiveComponent OtherComp, vector HitNormal) 
{
	//Debugging
	`log("Bumped something");

	Super.Bump(Other, OtherComp, HitNormal);
}


/**
 * Landed 
 * @version 2010.12.04
 */
event Landed(Object.Vector HitNormal, Actor FloorActor) 
{
	//Debugging
	`log("landed!");
		
	Super.Landed(HitNormal, FloorActor);
	SetPhysics(PHYS_Flying);
}
*/

defaultproperties
{
	Begin Object Name=StaticMeshComponent0
		StaticMesh=StaticMesh'MarioMeshes.Mushroom';
	End Object
	DrawScale=2.0
	
}


